package com.shark.springbootcms;

import com.shark.springbootcms.common.JwtUtils;
import com.shark.springbootcms.utils.IdWorker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableScheduling
@EnableTransactionManagement
public class SpringbootcmsApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootcmsApplication.class, args);
    }

    @Bean
    public IdWorker idWorker() {
        return  new IdWorker();
    }

    @Bean
    public JwtUtils jwtUtils() {
        return  new  JwtUtils();
    }

}
